﻿@model IEnumerable<Order>

<div class="t-rtl">
    @(Html.Telerik().Grid<Order>(Model)
        .Name("Grid")
        .Columns(columns =>
		{
            columns.Bound(o => o.OrderID).Width(100);
            columns.Bound(o => o.Customer.ContactName).Width(200);
            columns.Bound(o => o.ShipAddress);
            columns.Bound(o => o.OrderDate).Format("{0:MM/dd/yyyy}").Width(120);
        })
        .DataBinding(dataBinding => dataBinding.Ajax().Select("_RtlSupport", "Grid"))
        .Scrollable()
        .Sortable()
        .Groupable()
        .ToolBar(toolbar => toolbar.Custom().Text("Custom"))
        .Pageable()
        .Filterable()
    )
</div>


